<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.*" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<!-- 
		form:action属性表示提交的地址,method属性表示提交的方式,post表示隐式提交(地址栏看不见参数),get表示显式提交(能看见参数)
		?hua=123456
		注意:form表单提交的时候,表单元素的name属性值就是参数名称,value属性表示参数值
	 -->
	<form  action="http://192.168.15.7:8080/day10/chat/chuli.jsp" method="post">
		<Input type="text" name="hua" value=""/>
		<input type="submit" value="说话">
	</form>
	<hr>
	<%
		List<String> huas = (List<String>)application.getAttribute("huas");
		for(int i=0;i<huas.size();i++){
			%>
			<span><%=huas.get(i) %></span><br>
			<%
		}
	%>
</body>
</html>